package com.wrx.redis_learning.entity;

import com.fasterxml.jackson.annotation.JsonCreator;
import lombok.Data;

@Data
public class User {
    private long id;
    private String user_name;
    private String pass_word;
    private int age;
    private String address;

    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    public String getUser_name() {
        return user_name;
    }

    public void setUser_name(String user_name) {
        this.user_name = user_name;
    }

    public String getPass_word() {
        return pass_word;
    }

    public void setPass_word(String pass_word) {
        this.pass_word = pass_word;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }
    public User( String user_name, String pass_word, int age, String address) {
        this.user_name = user_name;
        this.pass_word = pass_word;
        this.age = age;
        this.address = address;
    }
    public User(){}
    @Override
    public String toString() {
        return "User{" +
                "id=" + id +
                ", user_name='" + user_name + '\'' +
                ", pass_word='" + pass_word + '\'' +
                ", age=" + age +
                ", address='" + address + '\'' +
                '}';
    }
}
